Applies paging to this client view.

Namespace:  C1.Data
Assembly:  C1.Data.Entity (in C1.Data.Entity.dll)

Syntax

C#
public PagingView<T> Paging<TKey>(
	Expression<Func<T, TKey>> sortKeySelector,
	int pageSize
)
Visual Basic
Public Function Paging(Of TKey) ( _
	sortKeySelector As Expression(Of Func(Of T, TKey)), _
	pageSize As Integer _
) As PagingView(Of T)

Parameters

sortKeySelector
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T, TKey>)>)>>)>)>
A function specifying a sort key.
pageSize
Type: System..::..Int32
A value for the PageSize property, the number of items to load in a page.

Type Parameters

TKey
The type of the sort key.

Return Value

A paged client view.

Remarks

Sorting is required, paging entities is impossible without sort.

See Also